//
//  RACCommand+ML.h
//  hehe
//
//  Created by Robin on 16/2/26.
//  Copyright © 2016年 HolyShit. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ReactiveObjC/ReactiveObjC.h>

@interface RACCommand (MY_Private)

@property(nonatomic, strong) RACSubject *cancleSubject;

@end

@interface RACCommand (MY)
- (BOOL)isExecuting;

+ (instancetype)commandWithSignalBlock:(RACSignal *(^)(id input))signalBlock;

+ (instancetype)commandWithEnabledSignal:(RACSignal *)enabledSignal signalBlock:(RACSignal *(^)(id input))signalBlock;

- (void)cancle;

@end
